/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package imp.ejemplos;

import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;

/**
 *
 * @author Angelical
 */
public class PhaseListener implements javax.faces.event.PhaseListener {

    public void afterPhase(PhaseEvent pe) {
        pe.getFacesContext().getExternalContext().log("AFTER"+pe.getPhaseId());
    }

    public void beforePhase(PhaseEvent pe) {
        pe.getFacesContext().getExternalContext().log("BEFORE"+pe.getPhaseId());
    }

    public PhaseId getPhaseId() {
       return PhaseId.ANY_PHASE;
    }


}
